import {http, loginHttp} from "./api";

export default {
  products() {
    return http.get('fanzhishi/products')
  },
  mountedTeacher(id) {
    return http.get('fanzhishi/products/mounted_teachers/' + id)
  },
  productInfo(id) {
    return http.get('fanzhishi/products/' + id)
  },
  mountProducts(appId) {
    return http.get('fanzhishi/mount/products', {
      data: {
        appId
      }
    })
  },
  joint(jointId) {
    return http.get('fanzhishi/joints/' + jointId)
  },
  postJointToMail(jointId, mail) {
    return http.post('fanzhishi/joints/' + jointId + '/mail', {
      data: {
        mail
      }
    })
  }
}